package javatest;

public class test3 {
    public static void main(String[] args) {
        int a,b,c,d,e,f;
        a=6832;
        b=a/1000;
        c=a/100%10;
        d=a/10%10;
        e=a%10;
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
        System.out.println(e);
        f=b+c+d+e;
        System.out.println(f);



    }
}
